package com.eh.decorator.condiment;

import com.eh.decorator.beverage.Beverage;

/**
 * Created by David on 2016/4/24.
 */
public class Mocha extends CondimentDecorator {
    public Mocha(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public double cost() {
        return 0.2 + beverage.cost();
    }

    @Override
    protected String getCondimentDescription() {
        return "Mocha";
    }
}
